package com.eshin.autotest.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author Eshin
 * @title: HelloConfiguration
 * @projectName pay
 * @date 2019/5/2816:59
 */

//@Configuration
public class ServiceConfiguration {

    @Autowired
    HelloService helloService;

    @Autowired
    TestService testService;

    @PostConstruct
    public void initService(){
        System.out.println("doing initService");
        helloService.setTestService(testService);
    }

}
